package com.weacar.adapter;

import android.content.Context;

import com.weacar.R;
import com.weacar.bean.MessageBean;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;

import java.util.List;

public class MessageCenterAdapter extends CommonAdapter<MessageBean.MsgBean> {

    public MessageCenterAdapter(Context context, int layoutId, List datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder viewHolder, MessageBean.MsgBean item, int position) {
        viewHolder.setText(R.id.tv_content, item.getContent()).setText(R.id.tv_time, item.getCreate_at());
    }
}
